<?php

include_once(create_path("plugin/photogals/tpl_photogals.php"));
include_once(create_path("plugin/photogals/lg_photogals_".LANG.".php"));
include_once(create_path("plugin/photogals/sql_photogals.php"));


include(create_path("plugin/photogals/conf.php"));


# we check if the plugin is installed
if($plugin_install!=1) 
{
 include(create_path("plugin/photogals/install.php"));
}
else
{
 if(!isset($_GET['v1']))
 {
  include(create_path("plugin/photogals/photogals_list.php"));
 }
 else
 {
  switch($_GET['v1']) {
   case "form_photogals" :  include(create_path("plugin/photogals/form_photogals.php")); break;
   case "photogals_list" :  include(create_path("plugin/photogals/photogals_list.php")); break;
   case "view" : include(create_path("plugin/photogals/view_photogals.php")); break;
   default : include(create_path("plugin/photogals/photogals_list.php"));
  }
 }
}
?>